﻿using System;

namespace DatabaseStuff
{
    /// <summary>
    /// Interface for manipulating the data inside a field
    /// </summary>
    public interface IDBData
    {
        /// <summary>
        /// Get the field which this data fills
        /// </summary>
        IDBField Field { get; }

        /// <summary>
        /// Get the record which this data exists under
        /// </summary>
        IDBRecord Record { get; }

        /// <summary>
        /// Get or set the data itself
        /// </summary>
        object Data { get; set; }
    }
}
